package com.yyds.mapper;

import com.yyds.pojo.PersonResident;
import com.yyds.vo.EchartPieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 花君瑜
 * @date 2022/10/14 08:47:25
 * @desc
 **/
public interface PersonResidentMapper {
    //查全部居民信息
    List<PersonResident> queryAllPersonResidentMapper(Map<String, Object> params);

    //根据id删除居民信息
    Integer deletePersonResidentMapper(Integer resident_id);

    //添加居民信息
    Integer addPersonResidentMapper(PersonResident personResident);

    //修改居民信息
    Integer updatePersonResidentService(PersonResident personResident);

    //删除部分居民信息
    Integer deleteAllPersonResidentMapper(List<Integer> list);

    //查询男女以及保密人数
    List<EchartPieVo> queryPersonResidentMapper();

    //根据居民姓名查居民id
    Integer selectPersonResidentId(String resident_name);

    //添加用户端 居民信息
    Integer addWithStatusPersonResidentMapper(@Param("resident_id") Integer resident_id,@Param("status_status") String status_status);
}
